﻿using FrameworkCore.Modules.Startups;
using Microsoft.AspNetCore.Builder;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using OllamaSharp;

namespace AiBLSmartEdu.Module.AIMentalHealthSelfAssessment.API;

/// <summary>
/// AI心理健康自评问卷
/// </summary>
public class AiBLSmartEduStartup : IAiBLSmartEduStartup
{
    public int Order => 3000;

    public void Configure(IApplicationBuilder application)
    {
    }

    public void ConfigureServices(IServiceCollection services, IConfiguration configuration)
    {
        services.AddSingleton<IOllamaApiClient>(sp =>
        {
            return new OllamaApiClient("http://localhost:11434"); // 替换为你的 Ollama 服务地址
        });
    }
}
